/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejercicios;

import java.util.Scanner;

/**
 *
 * @author Christian
 */
public class ejercicio3 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        Scanner teclado=new Scanner(System.in);
        String cad;
        int altura;
        int base;
        
        
        System.out.println("Dime la base");
        cad=teclado.nextLine();
        base=Integer.parseInt(cad);
        
        System.out.println("Dime la altura");
        cad=teclado.nextLine();
        altura=Integer.parseInt(cad);
        
        
        System.out.println("El perimetro del rectangulo es "+ ((base+altura)*2));
        
       
        
        
       
    }

    private static Scanner nextLine() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
